from selenium import webdriver
from selenium.webdriver.common.by import By


# driver = webdriver.Chrome()
#
# driver.get('https://selenium.dev/documentation')
# assert 'Selenium' in driver.title
#
# elem = driver.find_element(By.ID, 'm-documentationwebdriver')
# elem.click()
# assert 'WebDriver' in driver.title
#
# driver.quit()

service = webdriver.ChromeService(executable_path='D://chromedriver.exe')

driver = webdriver.Chrome(service=service)

driver.get('https://seleniumbase.io/demo_page/')
myButton = driver.find_element(By.ID, 'myButton')

myButton.click()

driver.implicitly_wait(10)

driver.quit()